package guda.house.biz.form;

import guda.house.dal.dataobject.OfficeEmployeeDO;

import javax.validation.constraints.NotNull;


public class OfficeEmployeeForm {


    private Long varId;
    private String userName;
    private String userPhone;

    @NotNull(message = "不能为空")
    private Long villageId;

    public Long getVillageId() {
        return villageId;
    }

    public void setVillageId(Long villageId) {
        this.villageId = villageId;
    }

    public OfficeEmployeeDO toDO() {
        OfficeEmployeeDO officeEmployeeDO = new OfficeEmployeeDO();
        officeEmployeeDO.setUserName(userName);
        officeEmployeeDO.setUserPhone(userPhone);
        officeEmployeeDO.setVarId(varId);
        officeEmployeeDO.setVillageId(villageId);
        return officeEmployeeDO;
    }


    public Long getVarId() {
        return varId;
    }

    public void setVarId(Long varId) {
        this.varId = varId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }
}
